function addNormalValue(){
    var normalBody = $('#normalValues')[0];
    contadorParaNuevasFilas++;
    var count = contadorParaNuevasFilas;
    var normalBodyClone = $(normalBody).clone();
    $(normalBodyClone)[0].children[0].children[1].name = 'laboratory.normalValues['+ count +']';
    $(normalBodyClone)[0].children[0].children[1].value = '';
    $(normalBodyClone)[0].children[1].children[0].name = 'laboratory.normalValues['+ count +']';
    $(normalBodyClone)[0].children[2].children[0].name = 'laboratory.normalValues['+ count +']';
    $(normalBodyClone)[0].children[2].children[1].children[0].children[0].name = 'laboratory.normalValues['+ count +']';
    $(normalBodyClone)[0].children[2].children[1].children[0].children[0].value = '';
    $(normalBodyClone)[0].children[2].children[1].children[0].children[1].value = '';
    $(normalBodyClone)[0].children[3].children[0].innerHTML = '<a class="normalTip" style="text-align: right;" onclick="deleteNormalValue(this.parentNode.parentNode.parentNode)" title="Delete Normal Value"><img style="width: 20px; height: 20px;" src="/BMS/images/minus.png" alt="Delete Normal Value"></a>';
    $('#normalValues').parent().children('tbody#normalValues').after(normalBodyClone[0]);
    $.data( $('#slider-id')[0], 'liquidSlider').adjustHeight();
    $('a.normalTip').aToolTip();
}

function deleteNormalValue(value){
    if($('tbody#normalValues').length > 1){
        $(value).remove();
        $.data( $('#slider-id')[0], 'liquidSlider').adjustHeight();
    }
    else{
        var clone = $($(value)[0]).clone();
        $(clone)[0].children[3].children[0].innerHTML = '<a class="normalTip" style="text-align: right;" onclick="deleteNormalValue(this.parentNode.parentNode.parentNode)" title="Delete Normal Value"><img style="width: 20px; height: 20px;" src="/BMS/images/minus.png" alt="Delete Normal Value"></a>'
        $($(value)[0]).replaceWith(clone[0]);
        $('a.normalTip').aToolTip();
    }
}